package com.yby.dome11;

/**
 * 狗
 */
public class Dog extends Pet{
    public void eat(){
        //重写父类Pet的eat()方法
        System.out.println("狗只要主人喂狗粮，狗就吃");
    }
}
